# For interfacing with PowerHAL
hal_client_domain(hal_camera_default, hal_power)

# Allow hal_camera_default to read to vendor_sysfs_kgsl
r_dir_file(hal_camera_default, vendor_sysfs_kgsl)

# Allow hal_camera_default to read to mnt/vendor/persist/camera
r_dir_file(hal_camera_default, camera_persist_file)
r_dir_file(hal_camera_default, mnt_vendor_file)
r_dir_file(hal_camera_default, vendor_persist_sensors_file)

allow hal_camera_default remosaic_daemon_service:service_manager find;

allow hal_camera_default proc_stat:file read;

set_prop(hal_camera_default, vendor_camera_prop)

allow hal_camera_default socket_device:sock_file write;
allow hal_camera_default proc_stat:file { open };

allow hal_camera_default public_adsprpcd_file:file r_file_perms;
allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;
